{tpl head}
<div class=""></div>
<table class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
    <thead><tr class="n_bt"><td colspan="9" align="center">工作小助手系统</td></tr>
    <tr><th class="thbt" colspan="9">【{$title}】</th></tr>
    </thead>
    <thead>
    <tr>
        <td height="28" align="center"  class="thbt">菜品名称</td>
        {loop $cate_list $v}
        <td height="28" align="center"  class="thbt"><a class="{if $order==$v.cat_id && $by}asc{else}desc{/if}" href="?c=order&a=total&order=c{$v.cat_id}&by={if $order==$v.cat_id && $by}asc{else}desc{/if}" >{$v.cat_name}</a></td>
        {/loop}
        <td height="28" align="center"  class="thbt"><a class="{if $order==favorite && $by}asc{else}desc{/if}" href="?c=order&a=total&order=favorite&by={if $order==favorite && $by}asc{else}desc{/if}">点赞数</a></td>
        <td height="28" align="center"  class="thbt"><a class="{if $order==total && $by}asc{else}desc{/if}" href="?c=order&a=total&order=total&by={if $order==total && $by}asc{else}desc{/if}">实际销售数</a></td>
    </tr></thead>
    <tbody>
    {loop $data $v}
    <tr align="center">
        <td  align="center" >{$v.name}</td>
        <td height="20" align="center">{$v.c1}</td>
        <td height="20" align="center">{$v.c2}</td>
        <td height="20" align="center">{$v.c3}</td>
        <td height="20" align="center">{$v.c4}</td>
        <td height="20" align="center">{$v.c5}</td>
        <td height="20" align="center">{$v.c6}</td>
        <td height="20" align="center">{$v.favorite}</td>
        <td height="20" align="center">{$v.og_c}</td>
    </tr>
    {/loop}</tbody>
</table>
<div class="pages">{$pagelist}</div>
{tpl foot}